package com.ccb.jyzx.expand.tiantouonline.service.impl;

import com.ccb.jyzx.expand.tiantouonline.bean.BatchPush;
import com.ccb.jyzx.expand.tiantouonline.bean.vo.BatchPushVo;
import com.ccb.jyzx.expand.tiantouonline.dao.BatchPushDao;
import com.ccb.jyzx.expand.tiantouonline.service.BatchPushService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.sql.SQLException;
import java.util.List;

/**
 * @projectName: extend
 * @author: jianghaolin
 * @date: 2019/11/22
 * @version: 1.0
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class BatchPushServiceImpl implements BatchPushService {

    @Autowired
    private BatchPushDao dao;
    @Override
    public void save(BatchPush batchPush) {
        dao.save(batchPush);
    }

    @Override
    public List<BatchPush> findOneByFileId(String fileId) {
        return dao.findOneByFileId(fileId);
    }

    @Override
    public List<BatchPushVo> findAllCoverFiles() {
        return dao.findAllCoverFiles();
    }
}
